<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/content/mytags.jsp"%>
<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>数据源</title>
		<t:resource types="jquery,lhgdialog,easyui" />
	</head>
	<body>
		<ui:form name="dataSource-form" refreshGrid="dataSourceList" action="datasource.do?saveOrUpdate">
			<div class="form-group">
				<label class="label">数据源名称 :</label>
				<input id="dbName" type="text" name="dbName" value="${dataSource.dbName }" class="easyui-textbox" data-options="${!empty dataSource.dbName ? 'editable:false,' : '' }required:true,validType:['character','length[2,20]']" />
			</div>
			<div class="form-group">
				<label class="label">数据源描述:</label>
				<input id="dbDepict" type="text" name="dbDepict" value="${dataSource.dbDepict }" class="easyui-textbox" data-options="multiline:true,height: '80px'"/>
			</div>
			<div class="form-group">
				<label class="label">数据源驱动 :</label>
				<input id="dbDriverclass" type="text" name="dbDriverclass" value="${dataSource.dbDriverclass }" class="easyui-textbox" data-options="required:true,validType:['length[2,200]']" />
			</div>
			<div class="form-group">
				<label class="label">数据源URL :</label>
				<input id="dbUrl" type="text" name="dbUrl" value="${dataSource.dbUrl }" class="easyui-textbox" data-options="required:true,validType:['length[2,200]']" />
			</div>
			<div class="form-group">
				<label class="label">数据源用户名 :</label>
				<input id="dbUsername" type="text" name="dbUsername" value="${dataSource.dbUsername }" class="easyui-textbox" data-options="required:true,validType:['length[2,30]']" />
			</div>
			<div class="form-group">
				<label class="label">数据源密码 :</label>
				<input id="dbPassword" type="text" name="dbPassword" value="${dataSource.dbPassword }" class="easyui-textbox" data-options="required:true,validType:['length[2,100]']" />
			</div>
			<div class="form-group">
				<label class="label">数据库类型 :</label>
				<input id="dbType" type="text" name="dbType" value="${dataSource.dbType }" class="easyui-textbox" data-options="required:true,validType:['length[2,20]']" />
			</div>
		</ui:form>
	</body>
</html>